const express = require('express');
var orderController = require('../controller/order.controller');

module.exports=(app)=>{
    var router = express.Router();
    router.route('/status')
        .put(orderController.updateOrders);

    router.route('/:status')
        .get(orderController.findOrdersByStatus);

    app.use('/sec/op/order',router);
    return router;
}